import { createAppSlice } from "@/utils/redux/createAppSlice";

let initState = () => ({
  // 会话列表
  chatsList: [],
  selectAll: false,
  isAll: false,
  selectMaps:{},
  search:'',
  selectMode:false,

  confirmOpen:false,
});

var counterSlice = createAppSlice({
  name: "space",
  initialState: { ...initState() },
  reducers: (create) => ({
    setState(state, action) {
      return { ...state, ...action.payload };
    },
    init(state, action) {
      return { ...initState(), ...action.payload };
    },
  }),
});

export default counterSlice